#include "gpio.h"
#include "LED/led.h"
#include "PLL/pll.h"

/*
 * 尝试修改cpu频率。默认PLL1 PMS = 3 200 1 = 800MHz
*/

int g_a;

void delay(uint t){
    while(t--);
}

int main(){
    int t;
    g_a = 1;

    // chg_pll();
    // while((PWRMODE >> 15) & 1);
    
    chg_fclkdiv();

    led_init();

    while(1){
        if(t < 20){
            led1_on();
            delay(2000000);
            t++;
        }
        led1_off();
        delay(2000000);
    }

    return 0;
}
